From: Lars Magne Ingebrigtsen Date: Sat, 16 Jul 2011 18:39:01 +0000 (+0200) Subject: * simple.el (current-kill): Clarify what `interprogram-paste-function' does. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~2791 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=b3d8c2a8c1bd13961e7067b6770596a6203e414e;p=emacs.git * simple.el (current-kill): Clarify what `interprogram-paste-function' does. Apparently I forgot to check in simple.el last time and just checked in the ChangeLog. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index ef66d38d24b..38be6a390f6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-07-16 Lars Magne Ingebrigtsen + + * simple.el (current-kill): Clarify what + `interprogram-paste-function' does (bug#7500). + 2011-07-16 Lawrence Mitchell * emacs-lisp/cl-macs.el (defstruct): Ignore argument to setf diff --git a/lisp/simple.el b/lisp/simple.el index 64333402924..5dbe1e39794 100644 --- a/lisp/simple.el +++ b/lisp/simple.el @@ -3056,10 +3056,11 @@ If `interprogram-cut-function' is set, pass the resulting kill to it." (defun current-kill (n &optional do-not-move) "Rotate the yanking point by N places, and then return that kill. -If N is zero, `interprogram-paste-function' is set, and calling -it returns a string or list of strings, then that string (or -list) is added to the front of the kill ring and the string (or -first string in the list) is returned as the latest kill. +If N is zero and `interprogram-paste-function' is set to a +function that returns a string or a list of strings, and if that +function doesn't return nil, then that string (or list) is added +to the front of the kill ring and the string (or first string in +the list) is returned as the latest kill. If N is not zero, and if `yank-pop-change-selection' is non-nil, use `interprogram-cut-function' to transfer the